<template>
  <div id="admin-c">
    <div class="admin-c-txt">
        <div class="admin-title">
            <span>23.4<i>℃</i></span>
            <p>室外温度</p>
        </div>
        <div class="admin-title">
            <span>20.4<i>℃</i></span>
            <p>室内温度</p>
        </div>
    </div>
    <div class="admin-c-bg">
    </div>

  </div>
</template>

<script>
export default {
  name: 'admin-c',
  data() {
    return {
        
    };
  },
  components: {},
  mounted() {
    let that = this
    that.$nextTick(() => {
        that.fontSizeFun(14)
    })
  },
  methods: {
    fontSizeFun(val,initWidth=1920){
        const nowClientWidth = document.documentElement.clientWidth
        return val * (nowClientWidth/initWidth) + 'px'
    },
  },
};
</script>

<style lang="scss" scoped>
#admin-c{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    height: 100%;
    width: 99%;
    margin: auto;
    .admin-c-txt{
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        background: rgba($color: #0F2F5C, $alpha: 0.2);
        padding: 15px 0;
        .admin-title{
            width: 20%;
            span{
                display: block;
                color: #00E5FF;
                font-weight: 600;
                text-align: center;
                width: 100%;
                font-size: 24px;
                i{
                    font-weight: normal;
                }
            }
            p{
                width: 100%;
                text-align: center;
                font-size: 14px;
                margin-top: 10px;
                font-weight: bold;
            }
        }
    }
    .admin-c-bg{
        width: 100%;
        height: 80%;
        background-image: url(./img/dt_bj.png);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: auto 100%;
        margin-top: 40px;
    }
}
</style>